/**
 * Created by zibu on 2017/10/20.
 */
let base =require("./Base");
let ObjectId = base.ObjectId;

let UserScheme = new base.Schema({
    name:String,
    pwdText:String,
    studentID:String,
    email:String,
    mobile:String,
    sex:String,
    group:String,
    isAdmin:Boolean,
    registerTime:{type:Date,default:Date.now}
});

let UserEntity = base.mongoose.model("UserEntity",UserScheme,"user");

exports.UserEntity = UserEntity;
